﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Antix.Data.Objects;

namespace Antix.ObjectsToDatabase.Test.CatalogueClasses
{
    [DataTable("User", Schema = "Security")]
    [DataIndex("EMail_Unique", "EMail", IsUnique = true)]
    public class User : Base.AuditObject
    {
        /// <summary>
        /// <para>Users e-mail address</para>
        /// </summary>
        [DataColumn(Name = "EMail", Length = 150, AllowNull = false)]
        protected string _EMail;

        /// <summary>
        /// <para>Personal details for this user</para>
        /// </summary>
        [DataColumn(Name = "Person", AllowNull=true)]
        protected Person _Person;
    }
}